<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="表格数据搜索.css">
</head>

<body>
    <input type="text" id="myInput" placeholder="搜索公司..." />
    <table id="myTable">
        <tr class="header">
            <th onclick="sortTable(0)" style="width: 60%">公司名称</th>
            <th onclick="sortTable(1)" style="width: 40%">国家</th>
        </tr>
        <tr>
            <td>Alfreds Futterkiste</td>
            <td>Germany</td>
        </tr>
        <tr>
            <td>Berglunds snabbkop</td>
            <td>Sweden</td>
        </tr>
        <tr>
            <td>Island Trading</td>
            <td>UK</td>
        </tr>
        <tr>
            <td>Koniglich Essen</td>
            <td>Germany</td>
        </tr>
    </table>
    <script src="表格数据搜索.js"></script>
</body>

</html>